package payroll.trans;

import payroll.method.MailMethod;
import payroll.method.PaymentMethod;


public class ChangeMailTransaction extends ChangeMethodTransaction {

    private String mailAddress;

    public ChangeMailTransaction(int empId, String mailAddress) {
        super(empId);
        this.mailAddress = mailAddress;
    }
    @Override
    protected PaymentMethod getPaymentMethod() {
        return new MailMethod(mailAddress);
    }

}
